package msystem

type RoutinePool struct {
	Queue          chan func(params ...interface{}) error
	Total          int
	RoutineNumber  int
	Running        int
	Result         chan error
	FinishCallback func()
}

func (domain *RoutinePool) NewPool(routineNumber int, total int) {
	domain.RoutineNumber = routineNumber
	domain.Total = total
	domain.Queue = make(chan func(params ...interface{}) error, total)
	domain.Result = make(chan error, total)
}

func (domain *RoutinePool) Add(func(params ...interface{})) {
	//domain.R
}
